﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.BLL;
using CSF.Customers.Data;
using Ict.DataAccess;

namespace CSF.Customers.BLL
{
    public class CustomerTypeBLL : TransactionConfigLogic<CustomerType>
    {
        /// <summary>
        /// 获取注册默认的公司类型
        /// </summary>
        /// <returns></returns>
        internal CustomerType GetRegisterDefault()
        {
            var q = from p in DataContext.Select<CustomerType>()
                    where p.IsRegisterDefault && !p.IsDisable
                    select p;
            return q.First();
        }
    }
}
